/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package photoshare.dto;

import java.io.Serializable;

/**
 *
 * @author PhotoShare
 */
public class RoleDTO implements Serializable {
    private Integer roleId;
    private String roleName;
    private String description;

    public RoleDTO() {
    }

    public RoleDTO(Integer roleId) {
        this.roleId = roleId;
    }

    public RoleDTO(Integer roleId, String roleName, String description) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.description = description;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (roleId != null ? roleId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RoleDTO)) {
            return false;
        }
        RoleDTO other = (RoleDTO) object;
        if ((this.roleId == null && other.roleId != null) || (this.roleId != null && !this.roleId.equals(other.roleId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dto.Roles[roleId=" + roleId + "]";
    }

}
